package com.ms.p2p.dao;


import com.ms.p2p.entity.account.YuEbaoLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface YueBaoLogDao extends CrudDao<YuEbaoLog> {

	List<YuEbaoLog> findPager(@Param("userId") Integer id,
							  @Param("begin") int begin, @Param("size") int pageSize);

	int findCount(@Param("userId") Integer ide);

	List<Map<String, Object>> getPager(@Param("userId") String userId,
									   @Param("userName") String userName,
									   @Param("logType") String logType,
									   @Param("begin_date") String begin_date,
									   @Param("end_date") String end_date, @Param("begin") int begin,
									   @Param("size") Integer pageSize);

	int getCount(@Param("userId") String userId,
				 @Param("userName") String userName,
				 @Param("logType") String logType,
				 @Param("begin_date") String begin_date,
				 @Param("end_date") String end_date);

	Map<String, Object> cacuYesterDay(@Param("userId") int userId);

}
